
#ifndef UI_CADTOOLBARINFO_H
#define UI_CADTOOLBARINFO_H

class UI_CadToolBar;

#include "wf_actionhandler.h"
#include "ui_ui_cadtoolbarinfo.h"
#include "..\gui_export.h"

class GUI_EXPORT UI_CadToolBarInfo : public QWidget, public Ui::UI_CadToolBarInfo
{
    Q_OBJECT

public:
    UI_CadToolBarInfo(QWidget* parent = 0, const char* name = 0, Qt::WindowFlags fl = 0);
    ~UI_CadToolBarInfo();

public slots:
    virtual void mousePressEvent( QMouseEvent * e );
    virtual void contextMenuEvent( QContextMenuEvent * e );
    virtual void setCadToolBar( UI_CadToolBar * tb );
    virtual void infoDist();
    virtual void infoDist2();
    virtual void infoAngle();
    virtual void infoTotalLength();
    virtual void infoArea();
    virtual void back();

protected:
    WF_ActionHandler* actionHandler;
    UI_CadToolBar* cadToolBar;

protected slots:
    virtual void languageChange();

private:
    void init();

};

#endif // QG_CADTOOLBARINFO_H
